<div class="big-list">
 <?php if(count($data)>0):?>
 <div class="head-tool">
 <form name="SearchProducts" method="post" action="">
	 <span>Có tất cả <strong><?php echo $total?></strong> kết quả:</span> | 
	 <span>Sắp xếp theo:</span>
	 <select name="Products[order]" onchange="this.form.submit();">
	 	<option value="lastest" <?php if($order=='lastest') echo 'selected';?>>Mới nhất</option>
	 	<option value="hight" <?php if($order=='hight') echo 'selected';?>>Giá cao -> thấp</option>
	 	<option value="low" <?php if($order=='low') echo 'selected';?>>Giá thấp -> cao</option>
	 </select>
 </form>
 </div>
 <?php foreach($data as $key => $item):
 	$link = Yii::app()->controller->createUrlProductDetail($item['product_id']);
 ?>
	<div class="big-item">
	 	<div class="big-shadow">
	 	<span class="item-shadow-left"></span>
	 	<div class="item-img" rel="data-hover-<?php echo $item['product_id'];?>"><img src="<?php echo Yii::app()->params['shop_url']."/l/".$item['image'];?>" /></div>
	 	<span class="item-shadow-right"></span>
	 	<a class="item-link" href="<?php echo $link;?>"><?php echo $item['title']; ?></a>
	 	<div class="item-price"><?php echo ShopHelpers::priceFormat($item['price']); ?></div>
	 	<div class="d-c"><a class="detail" href="<?php echo $link;?>">&raquo;chi tiết</a><a class="addcart" href="javascript:void(0);" onclick="addCart(<?php echo $item['product_id'];?>)">Cho vào giỏ hàng</a></div>
	</div>
	<div style="display: none" id="data-hover-<?php echo $item['product_id'];?>">
		<div class="hover-box-data">
		<h3 class="title"><?php echo $item['title']; ?></h3>
		<div class="content-box-data">
		<p class="tts">Thông tin sản phẩm</p>
		<?php echo $item['description'];?></div>
		</div>
	</div>
</div>
 <?php endforeach;?>
<div class="paging">
 <?php 
$this->widget('frontend.widgets.Pagination',
			array(
				'pages' => $page,
				'maxButtonCount'=>$itemOnPaging,
				));
?>
</div>
 <?php else:?>
 <h5>Không có sản phẩm nào được tìm thấy.</h5>
 <?php endif;?>
</div>